package com.ruoyi.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.SchoolProfessionsMapper;
import com.ruoyi.student.domain.SchoolProfessions;
import com.ruoyi.student.service.ISchoolProfessionsService;

/**
 * 专业信息Service业务层处理
 * 
 * @author liuyuan
 * @date 2023-06-10
 */
@Service
public class SchoolProfessionsServiceImpl implements ISchoolProfessionsService 
{
    @Autowired
    private SchoolProfessionsMapper schoolProfessionsMapper;

    /**
     * 查询专业信息
     * 
     * @param profid 专业信息主键
     * @return 专业信息
     */
    @Override
    public SchoolProfessions selectSchoolProfessionsByProfid(Long profid)
    {
        return schoolProfessionsMapper.selectSchoolProfessionsByProfid(profid);
    }

    /**
     * 查询专业信息列表
     * 
     * @param schoolProfessions 专业信息
     * @return 专业信息
     */
    @Override
    public List<SchoolProfessions> selectSchoolProfessionsList(SchoolProfessions schoolProfessions)
    {
        return schoolProfessionsMapper.selectSchoolProfessionsList(schoolProfessions);
    }

    /**
     * 新增专业信息
     * 
     * @param schoolProfessions 专业信息
     * @return 结果
     */
    @Override
    public int insertSchoolProfessions(SchoolProfessions schoolProfessions)
    {
        return schoolProfessionsMapper.insertSchoolProfessions(schoolProfessions);
    }

    /**
     * 修改专业信息
     * 
     * @param schoolProfessions 专业信息
     * @return 结果
     */
    @Override
    public int updateSchoolProfessions(SchoolProfessions schoolProfessions)
    {
        return schoolProfessionsMapper.updateSchoolProfessions(schoolProfessions);
    }

    /**
     * 批量删除专业信息
     * 
     * @param profids 需要删除的专业信息主键
     * @return 结果
     */
    @Override
    public int deleteSchoolProfessionsByProfids(Long[] profids)
    {
        return schoolProfessionsMapper.deleteSchoolProfessionsByProfids(profids);
    }

    /**
     * 删除专业信息信息
     * 
     * @param profid 专业信息主键
     * @return 结果
     */
    @Override
    public int deleteSchoolProfessionsByProfid(Long profid)
    {
        return schoolProfessionsMapper.deleteSchoolProfessionsByProfid(profid);
    }
}
